package cn.iocoder.yudao.module.promotion.newcustomer.pojo.po;

import cn.iocoder.yudao.framework.business.basic.pojo.po.MerchantScopeEntity;
import cn.iocoder.yudao.framework.mybatis.core.type.LongListTypeHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * 数据库表实体
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/07/11
 */
@Data
@TableName(value = "promotion_newcustomer_config", autoResultMap = true)
@Schema(description = "新客优惠配置")
public class NewcustomerConfig extends MerchantScopeEntity {

    @Schema(description = "开关")
    private Boolean enabled;

    @Schema(description = "原价金额，单位为分")
    private Integer originPrice;

    @Schema(description = "优惠金额，单位为分")
    private Integer price;

    @Schema(description = "奖励类型：0-无、1-红包、2-赠品")
    private Integer rewardType;

    @Schema(description = "红包金额，单位为分")
    private Integer redPacketAmount;

    @Schema(description = "赠品编号集合，逗号分隔")
    @TableField(typeHandler = LongListTypeHandler.class)
    private List<Long> giftActivityIds;

}
